<div id="inspectionTaskDetailModel" class="modal fade" tabindex="-1" role="dialog"
     aria-labelledby="inspectionTaskDetailModelLabel" aria-hidden="true">
    <div class="modal-dialog modal-xl">
        <div class="modal-content">
            <div class="modal-header">
                <h3 class="modal-title" id="inspectionTaskDetailModelLabel">
                    <span><vc:i18n name="任务详情" namespace="inspectionTaskDetail"></vc:i18n></span>
                </h3>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="ibox ">
                            <div class="table-responsive" style="margin-top:15px">
                                <table class="table table-striped">
                                    <thead>
                                    <tr>
                                        <th class="text-center">
                                            <span>
                                                <vc:i18n name="任务详情" namespace="inspectionTaskDetail"></vc:i18n>
                                            </span>ID
                                        </th>
                                        <!-- <th class="text-center">
                                            <span><vc:i18n name="巡检点" namespace="inspectionTaskDetail"></vc:i18n></span>ID
                                        </th> -->
                                        <th class="text-center">
                                            <span><vc:i18n name="巡检点" namespace="inspectionTaskDetail"></vc:i18n></span>
                                        </th>
                                        <th class="text-center">
                                            <span>
                                                <vc:i18n name="巡检状态" namespace="inspectionTaskDetail"></vc:i18n>
                                            </span>
                                        </th>
                                        <th class="text-center">
                                            <span>
                                                <vc:i18n name="签到状态" namespace="inspectionTaskDetail"></vc:i18n>
                                            </span>
                                        </th>
                                        <th class="text-center">
                                            <span><vc:i18n name="巡检人" namespace="inspectionTaskDetail"></vc:i18n></span><br/>
                                            <span><vc:i18n name="开始" namespace="inspectionTaskDetail"></vc:i18n></span>/结束时间
                                        </th>
                                        <th class="text-center">
                                            <span><vc:i18n name="巡检点" namespace="inspectionTaskDetail"></vc:i18n></span><br/>
                                            <span><vc:i18n name="开始" namespace="inspectionTaskDetail"></vc:i18n></span>/结束时间
                                        </th>
                                        <th class="text-center">
                                            <span>
                                                <vc:i18n name="实际巡检时间" namespace="inspectionTaskDetail"></vc:i18n>
                                            </span>
                                        </th>
                                        <th class="text-center">
                                            <span>
                                                <vc:i18n name="巡检情况" namespace="inspectionTaskDetail"></vc:i18n>
                                            </span>
                                        </th>
                                        <th class="text-center">
                                            <span>
                                                <vc:i18n name="巡检照片" namespace="inspectionTaskDetail"></vc:i18n>
                                            </span>
                                        </th>
                                        <th class="text-center" style="width: 70px;">
                                            <span>
                                                <vc:i18n name="位置信息" namespace="inspectionTaskDetail"></vc:i18n>
                                            </span>
                                        </th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr v-for="taskDetail in inspectionTaskDetailInfo.taskDetails">
                                        <td class="text-center">{{taskDetail.taskDetailId}}</td>
                                        <!-- <td class="text-center">{{taskDetail.inspectionId}}</td> -->
                                        <td class="text-center">{{taskDetail.inspectionName}}</td>
                                        <td class="text-center">{{taskDetail.stateName}}</td>
                                        <td class="text-center text-primary"
                                            v-if="taskDetail.inspectionState == '60000'">
                                            {{taskDetail.inspectionStateName ? taskDetail.inspectionStateName : '-'}}
                                        </td>
                                        <td class="text-center text-danger font-bold" v-else>
                                            {{taskDetail.inspectionStateName ? taskDetail.inspectionStateName : '-'}}
                                        </td>
                                        <td class="text-center">{{taskDetail.planInsTime}}<br/>{{taskDetail.planEndTime}}
                                        </td>
                                        <td class="text-center">{{taskDetail.pointStartTime}}<br/>{{taskDetail.pointEndTime}}
                                        </td>
                                        <td class="text-center">
                                            {{taskDetail.inspectionTime ? taskDetail.inspectionTime : '-'}}
                                        </td>
                                        <!-- <td class="text-center">{{taskDetail.patrolTypeName ? taskDetail.patrolTypeName : '-'}}</td> -->
                                        <td class="text-center">{{taskDetail.description ? taskDetail.description :
                                            '-'}}
                                        </td>
                                        <td class="text-center" style="white-space: nowrap;">
                                                <span v-for="_photo in taskDetail.photos">
                                                <img style="width: 60px; height: 60px;" v-bind:src="_photo.url"
                                                     v-on:click="openFile(_photo)"/>
                                            </span>
                                        </td>
                                        <td class="text-center">
                                            <button class="btn btn-info"
                                                    v-on:click="openMap(taskDetail.latitude, taskDetail.longitude)">
                                                <span>
                                                    <vc:i18n name="查看" namespace="inspectionTaskDetail"></vc:i18n>
                                                </span>
                                            </button>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                                <!-- 分页 -->
                                <vc:create namespace="inspectionTaskDetail" path="frame/paginationPlus"></vc:create>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <vc:create path="common/viewMap"></vc:create>
    <vc:create path="common/viewImage"></vc:create>
</div>
